package com.common.server.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 分页请求
 */
@Data
@ApiModel(value = "分页请求")
public class PageRequest {

    /**
     * 当前页号
     */
    @ApiModelProperty(value = "当前页号", required = true)
    private long current;

    /**
     * 页面大小
     */
    @ApiModelProperty(value = "页面大小", required = true)
    private long size;

    /**
     * 排序字段
     */
    @ApiModelProperty(value = "排序字段", required = false)
    private String sortField;

    /**
     * 排序方式，true 表示升序，false 表示降序，默认为升序
     */
    @ApiModelProperty(value = "排序方式", required = false)
    private Boolean sortOrder;

}
